package com.mentaleye.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mentaleye.bean.CurriculumTempRlateBean;
import com.mentaleye.dal.dao.CurriculumTempRlateDao;
import com.mentaleye.dal.model.CurriculumTempRlateExample;
import com.mentaleye.service.CurriculumTempRlateService;
import com.mentaleye.util.ObjectUtil;

@Service
public class CurriculumTempRlateServiceImpl implements CurriculumTempRlateService{

	@Autowired private CurriculumTempRlateDao curriculumTempRlateDao;
	
	@SuppressWarnings("unchecked")
	public List<CurriculumTempRlateBean> queryByExample(CurriculumTempRlateExample example){
		return ObjectUtil.transferList(curriculumTempRlateDao.queryByExample(example), CurriculumTempRlateBean.class);
	}
	
	@SuppressWarnings("unchecked")
	public List<CurriculumTempRlateBean> queryByJoin(Integer curriculumTempNo){
		return ObjectUtil.transferList(curriculumTempRlateDao.selectByJoin(curriculumTempNo), CurriculumTempRlateBean.class);
	}
}
